﻿<Window x:Class="WpfDecorator.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
       xmlns:local="clr-namespace:WpfDecorator"
        Title="MainWindow" Height="350" Width="525" Background="Black">

    <Grid x:Name="gridMain">
        <AdornerDecorator x:Name="xxxx"/>
        <local:SimpleDecorator Margin="249,212,154,69" x:Name="xPand" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
            <Rectangle   Fill="Green"  />
        </local:SimpleDecorator>

        <local:ReflectDecorator Margin="10" VerticalAlignment="Center"    HorizontalAlignment="Left">
            <Button Content="为人民服务" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White" />
        </local:ReflectDecorator>
        
        
        
            <Button Content="Button" Height="23" HorizontalAlignment="Left" Margin="353,55,0,0" Name="button1" 
                VerticalAlignment="Top" Width="75" Click="button1_Click" />
            <Image Source="cat.png" Width="60" Height="60" x:Name="img" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="49,18,0,0" />
  
        <Rectangle  x:Name="rec"  Fill="Green" Width="100" Height="30" Margin="354,124,50,157" />

    </Grid>
</Window>
